<?php
/**
 * Company Header Block 
 * 
 * @package Hive\Company
 * @author Xavier VILAIN
 * @license
 */

use Fox\Html\Input\File;
use Fox\Html\Input;
use Fox\Generator;
use Fox\Html\Block;

$block = new Block('bHeader',Msg(Fox\Msg::BUNDLE,Fox\Msg::MSG_HEADER_DATA));
$block->add(new Input(array('company','company_name'),true));
$block->add(new Input('company_parent',false))
		->autocomplete(Generator::url('company','autocomplete'),null,'parentid')
		->add(new Input('parentid'))->hidden();
$block->add(new Input(array('company_website','website'),false));
$block->add(new File(array('company_logo','logo'),false))
			->filter(File::$_FILTER_IMAGES_ONLY);
return $block;